# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kaidan
pkgver=0.9.1
pkgrel=5
pkgdesc="Kaidan, a simple and user-friendly Jabber/XMPP client for every device and platform"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://invent.kde.org/network/kaidan"
license="GPL-3.0-or-later-with-openssl-exception AND GPL-3.0-or-later AND MIT AND AND Apache-2.0 AND CC-BY-SA-4.0 AND CC-BY-SA-3.0"
depends="
	kirigami-addons5
	kirigami2
	kquickimageeditor
	qt5-qtbase-sqlite
	qt5-qtquickcontrols
	"
makedepends="
	extra-cmake-modules
	kio5-dev
	kirigami-addons5-dev
	kirigami2-dev
	knotifications5-dev
	kquickimageeditor-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtlocation-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	qxmpp-dev
	samurai
	zxing-cpp-dev
	"
subpackages="$pkgname-lang"
source="https://download.kde.org/unstable/kaidan/kaidan-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DQUICK_COMPILER=TRUE \
		-DI18N=TRUE
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
256daeb94f4275377e1ef0919eb43660dd76064c414f1ac5570fac33632f853977997c52a504d5dace188f560feac93ea88ae1bb796e2bf6a96bafa4be387cbb  kaidan-0.9.1.tar.xz
"
